﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using HTMLHelpers.Models;

namespace HTMLHelpers.Controllers
{
    public class CustomHelpersController : Controller
    {
        public ActionResult NoHelper()
        {
            var list = new List<Book>();
            list.Add(new Book
            {
                Id = 1,
                Title = "Professional ASP.NET MVC"
            });
            list.Add(new Book
            {
                Id = 2,
                Title = "Beginning ASP.NET MVC"
            });
            list.Add(new Book
            {
                Id = 3,
                Title = "Professional ASP.NET 3.5"
            });
            list.Add(new Book
            {
                Id = 4,
                Title = "Professional Visual Studio Extensibility"
            });
            list.Add(new Book
            {
                Id = 5,
                Title = "Professional ASP.NET Ajax"
            });
            return View(list);
        }

        public ActionResult CustomHelper()
        {
            return NoHelper();
        }
    }
}
